const fs = require('fs')
const Mock = require('mockjs')

    let vp = []
    for (var i = 0; i < 100; i++) {
      vp.push(Mock.mock({
        name: '@cname()',
        percom: '@cparagraph()',
        date: '@date(yyyy-MM-dd)',
      })
      )
      
    }

fs.writeFile('percom.json',JSON.stringify({"data":vp}),(err,res) => {
    if(err){
        console.log("出现错误：",err)
    }else{
        console.log('保存成功！')
    }
})

